/**
 * 
 */
package br.com.unifebe.tcc.componente.GUI;

import java.awt.Dimension;

import javax.swing.JButton;

import br.com.unifebe.tcc.UTILS.Funcoes;


/**
 * @Autor Marcelo Leite
 *
 */
public class Padroes {

	
	public static final JButton getCancelarButton() {
		JButton button = new JButton();
		button.setText(Funcoes.getDescricao("text_botao_cancelar"));
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_cancelar"));
		button.setIcon(IconFactory.get("cancelar"));//Parametros.getCancelarIcon());
		button.setFocusable(false);
		//button.setPreferredSize(new Dimension(90,23));
		button.setName("botaoCancelar");

		return button;
	}

	public static final JButton getCancelarSemTextoButton() {
		JButton button = new JButton();
		button.setText("");//java.util.ResourceBundle.getBundle("br/com/soarescim/global/etc/"+Parametros.getLanguage()).getString("label_botao_cancelar"));
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_cancelar"));
//		button.setBorder(new EmptyBorder(4,4,2,4));
		button.setIcon(IconFactory.get("cancelar"));
		button.setName("botaoCancelar");
		
		return button;
	}

	/**
	 * Bot�o de Copiar do Formul�rio
	 * @return
	 */
	public static final JButton getCopiarButton() {
		JButton button = new JButton();
		button.setText(Funcoes.getDescricao("text_botao_copiar"));
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_copiar"));
		button.setIcon(IconFactory.get("copiar"));//Parametros.getCopiarIcon());
//		button.setBorder(new EmptyBorder(4,4,2,4));
		button.setFocusable(true);
		button.setName("botaoCopiar");

		return button;
	}

	public static final JButton getOkSemTextoButton() {
		JButton button = new JButton();
		button.setText("");
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_ok"));
//		button.setBorder(new EmptyBorder(4,4,2,4));
		button.setName("botaoCancelar");
		
		return button;
	}


	public static final JButton getEntrarButton() {
		JButton button = new JButton();
		button.setText(Funcoes.getDescricao("text_botao_entrar"));
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_entrar"));
//		button.setBorder(new EmptyBorder(4,4,2,4));
		button.setFocusable(true);
		button.setPreferredSize(new Dimension(80,23));
		button.setName("botaoEntrar");

		return button;
	}

	/**
	 * Bot�o de Logs do Formul�rio
	 * @return
	 */
	public static final JButton getLogButton() {
		JButton button = new JButton();
		button.setText(Funcoes.getDescricao("text_botao_log"));
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_log"));
//		button.setBorder(new EmptyBorder(4,4,2,4));
		button.setFocusable(true);
		button.setName("botaoLog");

		return button;
	}

	/**
	 * Bot�o de Obs do Formul�rio
	 * @return
	 */
	public static final JButton getObsButton() {
		JButton button = new JButton();
		button.setText(Funcoes.getDescricao("text_botao_obs"));
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_obs"));
//		button.setBorder(new EmptyBorder(4,4,2,4));
		button.setFocusable(true);
		button.setName("botaoObs");

		
		return button;
	}

	/**
	 * Botão de Logs do Formulãrio
	 * @return
	 */
	public static final JButton getLimparButton() {
		JButton button = new JButton();
		button.setText( Funcoes.getDescricao("text_botao_limpar") );
		button.setToolTipText(Funcoes.getDescricao("tooltip_botao_limpar"));
		button.setFocusable( false );
		button.setName( "botaoLimpar" );

		return button;
	}
	
}
